-- GENERATED SPELL FOR [Scarlet Paladin] --


function spell0_1834(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14517,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1834', 30290, 1)
end

function spell1_1834(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(13952,pUnit)
pUnit:RegisterEvent('Sorts_1834', 2500, 1)
end

function spell2_1834(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(13953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1834', 630, 1)
end

function spell3_1834(pUnit, Event) --@Seal of Protection,n/a--
pUnit:FullCastSpellOnTarget(17177,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1834', 8287, 1)
end

function Sorts_1834(pUnit, Event)
local choix_sorts_1834 = math.random(0, 3)
if choix_sorts_1834 == 0 then
pUnit:RegisterEvent('spell0_1834', 1, 1)
end
if choix_sorts_1834 == 1 then
pUnit:RegisterEvent('spell1_1834', 1, 1)
end
if choix_sorts_1834 == 2 then
pUnit:RegisterEvent('spell2_1834', 1, 1)
end
if choix_sorts_1834 == 3 then
pUnit:RegisterEvent('spell3_1834', 1, 1)
end
end

function mob1834_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1834', math.random(1500, 3000), 1)
end

function mob1834_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1834_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1834_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1834, 1, 'mob1834_Action')
RegisterUnitEvent(1834, 2, 'mob1834_Leave')
RegisterUnitEvent(1834, 3, 'mob1834_Kill')
RegisterUnitEvent(1834, 4, 'mob1834_Die')
